from django.db import models

# Create your models here.

class Reading(models.Model):
    num = models.IntegerField('num', primary_key=True, auto_created=True, default=0)
    sentence = models.CharField('sentence', max_length=128)
    lang_type = models.IntegerField('lang_type', default=0)
    ip = models.CharField('ip', max_length=20, default='0.0.0.0')
    time = models.DateTimeField('time', auto_now=True)

    class Meta:
        db_table = 'reading'
